package com.ansion.commonchat.contact.bean;

import androidx.annotation.Keep;

import com.ansion.commonchat.contact.ui.ContactItemType;


@Keep
public class ContactDividerBean extends ContactBaseBean {

    @Override
    public int getType() {
        return ContactItemType.ItemTypeDivider;
    }

    public ContactDividerBean(String uniqueTag) {
        setUniqueTag(ContactItemType.ItemTypeDivider + uniqueTag);
        type = ContactItemType.ItemTypeDivider;
        diffContent = uniqueTag;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ContactDividerBean)) {
            return false;
        }
        ContactDividerBean that = (ContactDividerBean) o;
        return type == that.type && diffContent.equals(that.diffContent);
    }

}
